package com.example.oms.service;

import com.example.oms.dto.ReserveOfflineDto;
import com.example.oms.entity.Users;
import com.example.oms.utils.DataResult;

import javax.servlet.http.HttpServletRequest;
import java.util.Date;

public interface UserService {
    Users login(Users user);

    Users register(Users user);

    boolean accountIsExisted(String tel);

    boolean checkPatientIdNumber(Integer id);

    int creatAccount(ReserveOfflineDto reserveOfflineDto);

    void reloadpassword(String tel);

    DataResult addDetail(String idNumber, String name, HttpServletRequest request);

    boolean allowAddQueue(Date appointmentDate, String appointmentPeriod);
}
